package sy2;

public class Bus implements Price{
    private String brand;
    private String number;
    private int seats;

    public Bus(String brand, String number, int seats) {
        this.brand = brand;
        this.number = number;
        this.seats = seats;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public int getSeats() {
        return seats;
    }

    public void setSeats(int seats) {
        this.seats = seats;
    }

    @Override
    public int calRent(int day) {
        if(this.seats>=16){
            return 1500*day;
        }else {
            return 1000*day;
        }
    }
}
